home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
snowboard.swf
/
scripts
/
frame_9
/
PlaceObject2_360_83
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2007-01-15
|
1KB
|
59 lines
onClipEvent(enterFrame){
_rotation = _root.santa._rotation;
_X = _X + xspeed;
_Y = _Y + yspeed;
yspeed += grav;
xspeed *= 0.93;
if(var1 == 1)
{
grav = 1;
yspeed = -10;
xspeed = - (random(45) + 39);
aa = xspeed;
var1 = 3;
}
if(var1 != 1 && var1 != 3)
{
grav = 0;
}
if(this.ball.hitTest(_root.player) && _root.player._currentframe == 4)
{
rejected = true;
xspeed = - aa;
yspeed = -8;
_root.aSound.play();
}
if(this.ball.hitTest(_root.player) && _root.player._currentframe == 6)
{
rejected = true;
xspeed = - aa;
yspeed = -8;
_root.aSound.play();
}
if(this.ball.hitTest(_root.player) && _root.player._currentframe == 7)
{
rejected = true;
xspeed = - aa;
yspeed = -8;
_root.aSound.play();
}
if(this.ball.hitTest(_root.player) && _root.player._currentframe != 4 && _root.player._currentframe != 6 && _root.player._currentframe != 7 && _currentframe != 2)
{
xspeed = 0;
gotoAndStop(2);
_root.shake.play();
_root.hud.lives--;
}
if(this.ball.hitTest(_root.santa) && rejected == true)
{
this.gotoAndStop(2);
_root.santa.gotoAndStop(3);
rejected = false;
}
if(_root.land.hitTest(_X,_Y + h,true))
{
this.gotoAndStop(2);
xspeed = 0;
}
}